<? if (EGP_Core::debug()) { ?>
<style type="text/css">
#debuginfo {margin-top:10px; text-align:left;}
#debuginfo em, #debuginfo i {color:red;}
#debuginfo pre {margin:5px 0; padding:5px; border:1px dashed #E0E0E0; font:12px 'Courier New'; font-style:italic; color:#0A0;}
</style>
<div id="debuginfo">
<? $monitor = EGP_Registry::get('db')->getMonitor(); ?>
页面运行时间 <em><?=number_format(microtime(true)-START_TIME, 8, '.', '')?></em> 秒，共 <em><?=count($monitor)?></em> 个查询，消耗时间 <em><?=number_format($monitor->totalSecs, 8, '.', '')?></em> 秒<br />
<? foreach ($monitor as $query) { ?>
<pre><?=$query->sql?><div style="color:gray;">-- <?=number_format($query->secs, 8, '.', '')?> 秒</div></pre>
<? } ?>
</div>
<? } ?>
</body>
</html>